package javaclass.innerClass;

public class InnerClassTest {

    public static void main(String[] args) throws ClassNotFoundException {
        Class.forName("javaclass.innerClass.ServiceA", true, Thread.currentThread().getContextClassLoader());
        System.out.println("----------------");
        ServiceA.staticM();
        System.out.println("----------------");
        ServiceA staticCreateInstance = ServiceA.staticCreateInstance();
        System.out.println("------------------");
        staticCreateInstance.say();
        System.out.println("------------------");
        ServiceA serviceASingleInstance = ServiceA.getServiceASingleInstance();
        serviceASingleInstance.say();
        System.out.println("------------------");
        Class.forName("javaclass.innerClass.ServiceA$SingleHold", true, Thread.currentThread().getContextClassLoader());
        System.out.println("----------------------");
        Class.forName("javaclass.innerClass.ServiceB$Inner", true, Thread.currentThread().getContextClassLoader());
    }

}
